package net.opentsdb.core;

import java.util.List;
import java.util.Map;

/**
 * @author Hujf
 * @title: IncomingDataPoint
 * @date 2021-09-18 9:50
 * @description: 插入数据参数实体类
 */
public class IncomingDataPoint {

    /**
     * The incoming metric name
     */
    protected String metric;

    protected long timestamp;

    public String getMetric() {
        return metric;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Map<String, String> getTags() {
        return tags;
    }

    public void setTags(Map<String, String> tags) {
        this.tags = tags;
    }

    public String getTsuid() {
        return tsuid;
    }

    public void setTsuid(String tsuid) {
        this.tsuid = tsuid;
    }

    protected String value;

    protected Map<String, String> tags;

    /** TSUID for the data point */
    protected String tsuid;

    public void setMetric(String metric) {
        this.metric = metric;
    }

    public boolean validate(List<Map<String,Object>> detail) {
        return false;
    }
}
